package com.study.zouchao.superproject.modifyuserinfo.model.impl;


import com.study.zouchao.superproject.base_zou.api_zou.Api_C;

import com.study.zouchao.superproject.modifyuserinfo.model.entity.updateimg.UpdateImgResult;
import com.study.zouchao.superproject.util.RxSchedulers;
import com.study.zouchao.superproject.util.api.api.Api;

import java.util.Map;

import rx.Observable;


/**
 * Created by Administrator on 2017/2/5.
 */

public class UpdateHeadImgModel {

    public Observable<UpdateImgResult> updateHeadImg(Map<String, String> params) {
        return Api.getInstance(Api_C.BASE_URL_LIN_BASE).mApiService
                .uploadUserHeadImgByPOST(params)
                .compose(RxSchedulers.<UpdateImgResult>io_main());
    }


//    public Observable<QuestionUpdateImgResult> updateHeadImg(Map<String, String> params) {
////        return Api.getInstance().mApiService
////                .updateHeadImg(params)
////                .compose(RxSchedulers.<QuestionUpdateImgResult>io_main());
//        return null;
//    }
}
